import request from '@/plugins/request';
export default {
    /*.then(res => {
        // 返回数据
    })
        .catch(err => {
            // 异常情况
        })*/

// /salary/findByPage
// 按条件查询

    findByPage(data) {
        return request({
            url: '/api/salary/findByPage',
            method: 'post',
            data
        });
    },
    //salary/addSalary
    // 录入
    addSalary(data) {
        return request({
            url: '/api/salary/addSalary',
            method: 'post',
            data
        })
    },

    ///salary/updateSalary
    // 更新

    updateSalary(data) {
        return request({
            url: '/api/salary/updateSalary',
            method: 'post',
            data
        })
    },
    ///salary/deleteById
    // 删除

    deleteById(data) {
        return request({
            url: '/api/salary/deleteById',
            method: 'post',
            data
        })
    },
    ///salary/getInfoById
    // id获取详情
    getInfoById(data) {
        return request({
            url: '/api/salary/getInfoById',
            method: 'post',
            data
        })
    },
    ///comuser/findUserByPage
    // 查询用户信息
    findUserByPage(data) {
        return request({
            url: '/api/user/findUserByPage',
            method: 'post',
            data
        })
    },


}
